
package com.bk.model;

public class CartItem {
	/**
	 * 购物项
	 */
	private Product product;
	/**
	 * 购买的数量
	 */
	private int buyNum;
	
	/**
	 * 商品的小计
	 */
	private double subTotal;

	public Product getProduct() {
	
		return product;
	}

	public void setProduct(Product product) {
	
		this.product = product;
	}

	public int getBuyNum() {
	
		return buyNum;
	}

	public void setBuyNum(int buyNum) {
	
		this.buyNum = buyNum;
	}

	public double getSubTotal() {
	
		return subTotal;
	}

	public void setSubTotal(double subTotal) {
	
		this.subTotal = subTotal;
	}

	@Override
	public String toString() {
		return "CartItem [product=" + product + ", buyNum=" + buyNum + ", subTotal=" + subTotal + "]";
	}

	public CartItem(Product product, int buyNum, double subTotal) {
		super();
		this.product = product;
		this.buyNum = buyNum;
		this.subTotal = subTotal;
	}

	public CartItem() {
		
		super();
		//TODO 
			
	}
	
	
	

}

	